package Java攻略._3_流式操作._3_利用reduce方法实现归约操作;

import java.util.stream.Stream;

public class _25_利用方法引用收集字符串 {

    public static void main(String[] args) {

        String s = Stream.of("this", "is", "a", "list")
                .collect(StringBuilder::new
                        , StringBuilder::append
                        , StringBuilder::append)
                .toString();

        System.out.println(s);
    }
}
